Slider: fix duplicated property editor settings properties#22898
Conversation
…-range-minimum-property
|
Claude finished @nielslyngsoe's task in 1m 59s —— View job PR ReviewTarget: Removes the duplicate
Suggestions
Approved with Suggestions for improvementGood to go, but please carefully consider the importance of the suggestions. |
There was a problem hiding this comment.
Pull request overview
Fixes duplicate minimumRange settings property on the Slider property editor (declared both in the schema manifest and the UI manifest) and adds a defensive client-side check in the data type workspace that throws when duplicate setting aliases are merged from schema/UI/data-source manifests.
Changes:
- Remove duplicated
minimumRangeproperty and its default value from the Slider UI manifest, keeping the canonical definition on the schema manifest (with the descriptive text moved to the schema). - Add duplicate-alias detection in
UmbDataTypeWorkspaceContext.#mergeConfigPropertiesthat throws when two merged settings share an alias. - Minor refactor in
#transferConfigDefaultData: rename the loop variable fromdefaultDataItemtopropertyand remove an outdated TODO comment.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Umbraco.Web.UI.Client/src/packages/property-editors/slider/Umbraco.Slider.ts | Adds a meaningful description to the schema's minimumRange property. |
| src/Umbraco.Web.UI.Client/src/packages/property-editors/slider/manifests.ts | Removes the duplicate minimumRange property and default-data entry from the UI manifest. |
| src/Umbraco.Web.UI.Client/src/packages/data-type/workspace/data-type-workspace.context.ts | Adds duplicate-alias detection on merged settings and renames a loop variable for clarity. |
* fix duplicate slider pe-settings properties * remove comment * avoid throws
Updated [Umbraco.Cms.Persistence.Sqlite](https://github.com/umbraco/Umbraco-CMS) from 17.4.0 to 17.4.2. <details> <summary>Release notes</summary> _Sourced from [Umbraco.Cms.Persistence.Sqlite's releases](https://github.com/umbraco/Umbraco-CMS/releases)._ ## 17.4.2 ## What's Changed ### 🐛 Bug Fixes * Cache: Only write to url table on a single server in load balanced environments to remove lock contention by @nikolajlauridsen in umbraco/Umbraco-CMS#22890 * Cache: Add scope-level cache version tier to reduce DB hits in bulk operation by @nikolajlauridsen in umbraco/Umbraco-CMS#22563 * Migrations: Add auto upgrade coordination for load-balanced setups by @nikolajlauridsen in umbraco/Umbraco-CMS#22815 **Full Changelog**: umbraco/Umbraco-CMS@release-17.4.1...release-17.4.2 ## 17.4.1 ## What's Changed ### 🐛 Bug Fixes * Content Workspace: Load Data-Types based on Loaded Content Types by @nielslyngsoe in umbraco/Umbraco-CMS#22886 * Output Caching: Correctly gate auto-registration of `UseOutputCache()` middleware by @AndyButland in umbraco/Umbraco-CMS#22897 * Slider: fix duplicated property editor settings properties by @nielslyngsoe in umbraco/Umbraco-CMS#22898 **Full Changelog**: umbraco/Umbraco-CMS@release-17.4.0...release-17.4.1 Commits viewable in [compare view](umbraco/Umbraco-CMS@release-17.4.0...release-17.4.2). </details> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Updated [Umbraco.Cms.DevelopmentMode.Backoffice](https://github.com/umbraco/Umbraco-CMS) from 17.4.0 to 17.4.2. <details> <summary>Release notes</summary> _Sourced from [Umbraco.Cms.DevelopmentMode.Backoffice's releases](https://github.com/umbraco/Umbraco-CMS/releases)._ ## 17.4.2 ## What's Changed ### 🐛 Bug Fixes * Cache: Only write to url table on a single server in load balanced environments to remove lock contention by @nikolajlauridsen in umbraco/Umbraco-CMS#22890 * Cache: Add scope-level cache version tier to reduce DB hits in bulk operation by @nikolajlauridsen in umbraco/Umbraco-CMS#22563 * Migrations: Add auto upgrade coordination for load-balanced setups by @nikolajlauridsen in umbraco/Umbraco-CMS#22815 **Full Changelog**: umbraco/Umbraco-CMS@release-17.4.1...release-17.4.2 ## 17.4.1 ## What's Changed ### 🐛 Bug Fixes * Content Workspace: Load Data-Types based on Loaded Content Types by @nielslyngsoe in umbraco/Umbraco-CMS#22886 * Output Caching: Correctly gate auto-registration of `UseOutputCache()` middleware by @AndyButland in umbraco/Umbraco-CMS#22897 * Slider: fix duplicated property editor settings properties by @nielslyngsoe in umbraco/Umbraco-CMS#22898 **Full Changelog**: umbraco/Umbraco-CMS@release-17.4.0...release-17.4.1 Commits viewable in [compare view](umbraco/Umbraco-CMS@release-17.4.0...release-17.4.2). </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Removes duplicate Property Editor settings and adds a client-side error when it happens.